package com.itruth.base;

import com.itruth.data.entity.UserData;
import com.itruth.data.preference.ItruthPref;
import com.itruth.util.Constant;

import android.app.Application;

public class ItruthApp extends Application{
	
	private static ItruthApp instance;
	
	public ItruthApp () {
		
	}
	
	@Override
	public void onCreate() {
		super.onCreate();
		
		instance = this;
		
		init();
	}
	
	public static ItruthApp getIns() {
		
		return instance;
	}
	
	/**
	 * 初始化信息，如配置
	 */
	private void init() {
		
		UserData.getIns().setWriteTimes(ItruthPref.getIns().getWriteTimes());
		
	}
	
}
